<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>用户信息</title>
    <link rel="stylesheet" type="text/css" href="../../public/home/css/style_1_common.css" />
    <link rel="stylesheet" type="text/css" href="../../public/home/css/style_1_forum_index.css" />
    <link rel="stylesheet" id="css_extstyle" type="text/css" href="../../public/home/css/style.css" />
    <script src="../../public/home/js/common.js" type="text/javascript"></script>
    <script src="../../public/home/js/forum.js" type="text/javascript"></script>
    <script src="../../public/home/js/jquery-3.3.1.js"></script>
    <link rel="stylesheet" type="text/css" href="../../public/home/css/style_5_forum_forumdisplay.css" />
<style>
    #xin{
         text-align: center;
          margin-top: 10px;
    }
</style>
</head>
<body>
<?php require './head.php';?>
<div id="ct" class="ct2_a wp cl">
    <div class="mn" id="ziliao">
        <div class="bm bw0">
            <h1 class="mt">个人资料
            </h1>
            <!--don't close the div here--><ul class="tb cl">
                <li class="a"><a href="">基本资料</a></li>
                                <?php
                                $id = $_GET['id'];
                                $sql = "select * from userdetail where uid =$id";
                                $result = mysqli_query($link,$sql);
                                $rows = mysqli_fetch_assoc($result);

                                                        ?>
            </ul><iframe id="frame_profile" name="frame_profile" style="display: none"></iframe>
            <form action="" method="post" enctype="multipart/form-data" autocomplete="off" target="frame_profile" id="xin">
                <input type="hidden" value="96c977fd" name="formhash">

                        昵称:<input type="text" name="nickName" value="<?php echo $rows['nickName'] ?>" readonly><br><br>
                        年龄:<input type="text" name="age" value="<?php echo $rows['age'] ?>" readonly><br><br>
                       性别:<input type="radio" name="sex"  value='男'<?php echo $rows['sex'] == '男'? 'checked':''?> readonly>男&nbsp;&nbsp;
                            <input type="radio" name="sex"  value='女'<?php echo $rows['sex'] == '女'? 'checked':''?> readonly>女<br><br>
                        联系方式:<input id="num" type="text" name="num" value="<?php echo $rows['num'] ?>"readonly><br><br>
                       工作情况:<input type="radio" name="work"  value='有'<?php echo $rows['work'] == '有'? 'checked':''?> readonly>有&nbsp;&nbsp;
                                <input type="radio" name="work"  value='无'<?php echo $rows['work'] == '无'? 'checked':''?> readonly>无<br><br>
                     交友宣言:<textarea rows="10" cols="50"><?php echo $rows['content']?></textarea>
            </form>
        </div>
    </div>

</div>
<?php require './footer.php'?>
</body>
</html>